import { createRouter, createWebHistory } from 'vue-router'
import _routers from './routers/index'
import Layout from '@/views/Layout.vue'
import AboutView from '@/views/AboutView.vue'
import YiBiaoPan from '@/views/Home/YiBiaoPan.vue'
import DaiBanShiXiang from '@/views/Home/DaiBanShiXiang.vue'
import JiShi from '@/views/JiShi/JiShi.vue'
import WoDeJiShi from '@/views/JiShi/WoDeJiShi.vue'
import Login from '@/views/login.vue'
import Text from '@/views/text.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'layout',
      component: Layout,
      redirect: '/home',
      children: [..._routers],
    },
    {
      path:'/login',
      name:'login',
      component:Login
    },
    {
      path:'/text',
      name:'text',
      component:Text
    }
  ],
})

export default router
